<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
    <!--点击事件-->
    <button v-on:click="sayHi">提交</button>
</div>

<!--引入Vue-->
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script type="text/javascript">
    var vm = new Vue({
        el: "#app",
        data: {
            message: "Hello Vue"
        },
        methods:{
            sayHi: function () {
                alert(this.message);
            }
        }
    });
</script>

</body>
</html>